import request from '@/utils/request'
export default class index {
    // 获取系统信息
    static getSystemInfo( params:any = {}) {
      return request({
          url: 'system/info',
          method: 'get',
          params
      })
    };
    // 搜索用户
    static searchUser( params:any = {}) {
      return request({
          url: 'common/searchUser',
          method: 'get',
          params
      })
  };
    // 获取用户钱包信息
    static getUserWallet( params:any = {}) {
      return request({
          url: 'familyCompetition/getUserWallet',
          method: 'get',
          params
      })
    };
    // 读取正在开播的房间
    static getOpenRandRoomId( params:any = {}) {
      return request({
          url: 'common/getOpenRandRoomId',
          method: 'get',
          params
      })
    };
    // 获取活动配置
    static gameInfo( params:any = {}) {
      return request({
          url: 'custom/gameInfo',
          method: 'get',
          params
      })
    };
    // 榜单前3领取奖励
    static bankRewardGet( data:any = {}) {
      return request({
          url: 'custom/bankRewardGet',
          method: 'post',
          data
      })
    };
    // 获取榜单列表
    static bankList( params:any = {}) {
      return request({
          url: 'custom/bankList',
          method: 'get',
          params
      })
    };
    // 获取用户贡献榜列表
    static bankRichList( params:any = {}) {
        return request({
            url: 'custom/bankRichList',
            method: 'get',
            params
        })
    };
    // 获取人气票-banner数据
    static getUserTicket( params:any = {}) {
      return request({
          url: 'custom/getUserTicket',
          method: 'get',
          params
      })
    };

    
    // 获取商店信息
    static getShopList( params:any = {}) {
      return request({
          url: 'familyCompetition/getShopList',
          method: 'get',
          params
      })
    };
    // 钻石购买商品
    static jdUserBuy( data:any = {}) {
      return request({
          url: 'familyCompetition/jdUserBuy',
          method: 'post',
          data
      })
    };
    // 金豆购买商品
    static useJdBuyGift( data:any = {}) {
      return request({
          url: 'familyCompetition/useJdBuyGift',
          method: 'post',
          data
      })
    };
    // 人气票使用记录
    static getUserTicketCost( params:any = {}) {
      return request({
          url: 'custom/getUserTicketCost',
          method: 'get',
          params
      })
    };

    // 留言板弹幕列表
    static lybList( params:any = {}) {
        return request({
            url: 'custom/lybList',
            method: 'get',
            params
        })
    };
    // 留言板弹幕发送
    static lybAdd( data:any = {}) {
        return request({
            url: 'custom/lybAdd',
            method: 'post',
            data
        })
    };
    // 留言板给我留言列表
    static lybToUserList( params:any = {}) {
        return request({
            url: 'custom/lybToUserList',
            method: 'get',
            params
        })
    };
    // 留言板我的留言列表
    static lybFromUserList( params:any = {}) {
        return request({
            url: 'custom/lybFromUserList',
            method: 'get',
            params
        })
    };
    // 盖楼-获取楼层
    static bridgeList( params:any = {}) {
      return request({
          url: 'custom/bridgeList',
          method: 'get',
          params
      })
    };
    // 盖楼-礼物列表
    static bridgeGift( params:any = {}) {
      return request({
          url: 'custom/bridgeGift',
          method: 'get',
          params
      })
    };
    // 自定义充值-获取任务列表
    static rechargeList( params:any = {}) {
      return request({
          url: 'custom/rechargeList',
          method: 'get',
          params
      })
    };
    // 自定义充值-领取任务奖励
    static rechargeGet( data:any = {}) {
      return request({
          url: 'custom/rechargeGet',
          method: 'post',
          data
      })
    };
    
}